package com.hexb.smh.mapper;

import com.hexb.smh.entity.Config;
import com.hexb.smh.entity.LoginLog;
import com.hexb.smh.entity.OperationLog;
import com.hexb.smh.entity.param.log.LoginLogQueryParam;
import com.hexb.smh.entity.param.log.OperationLogQueryParam;
import com.hexb.smh.entity.view.LoginLogView;
import com.hexb.smh.entity.view.OperationLogView;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : hexb
 */
@Mapper
@Repository
public interface OperationLogMapper {

    int save(OperationLog ol);

    List<OperationLogView> search(OperationLogQueryParam param);

    int saveLoginLog(LoginLog log);

    List<LoginLogView> searchLoginLog(LoginLogQueryParam param);

}
